import { Tools } from 'weaver-mobile';

/**
 * 绩效-考核指标项-列表
 * jiansong 2019/6/11
 */
export const accessItemListApi = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/accessItemList',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-考核指标项-操作
 * jiansong 2019/6/11
 */
export const accessItemOperationApi = params => {
    let options = {
        method: 'POST',
        url: '/api/workrelate/performance/accessItemOperation',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-考核指标项-共享范围-列表
 * jiansong 2019/6/11
 */
export const accessItemShareListApi = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/accessItemShareList',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-考核指标项-共享范围-操作
 * jiansong 2019/6/11
 */
export const accessItemShareOperationApi = params => {
    let options = {
        method: 'POST',
        url: '/api/workrelate/performance/accessItemShareOperation',
        params: {...params}
    };
    return Tools.callApi(options);
};